<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>

    <!-- blueprint CSS framework -->
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/yiiplayground/screen.css" media="screen, projection" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/yiiplayground/print.css" media="print" />
    <!--[if lt IE 8]>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/yiiplayground/ie.css" media="screen, projection" />
    <![endif]-->

    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/yiiplayground/main.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/yiiplayground/style.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/yiiplayground/form.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/yiiplayground/css3.css" />

    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/user.css" />

    <meta name='robots' content='noindex,nofollow' />
</head>
<body>

<div class="container" id="page">

    <div id="header">
        <div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?>管理后台</div>
    </div><!-- header -->

    <div id="mb_mainmenu">
    <?php $this->widget('application.extensions.mbmenu.MbMenu',
            array('items'=>array(
                array('label'=>'功能向导', 'url'=>array('/user/user/info')),
                array('label'=>'用户管理', 'items'=>array(
                    array('label'=>'管理用户', 'url'=>array('/user/admin/admin')),
                    array('label'=>'查看用户', 'url'=>array('/user')),
                    array('label'=>'创建用户', 'url'=>array('/user/admin/create')),

                )),
                array('label'=>'用户资料字段', 'items'=>array(
                    array('label'=>'管理用户资料字段', 'url'=>array('/user/profileField/admin')),
                    array('label'=>'创建用户资料字段', 'url'=>array('/user/profileField/create')),
                )),
                array('label'=>'文章管理', 'items'=>array(
                    array('label'=>'文章栏目', 'url'=>array('/user/article/menu')),
                    array('label'=>'文章列表', 'url'=>array('/user/article/list')),
                    array('label'=>'创建文章', 'url'=>array('/user/article/create')),
                )),
                array('label'=>'广告，首页横幅管理', 'items'=>array(
                    array('label'=>'广告列表', 'url'=>array('/user/ads/list')),
                    array('label'=>'新增广告', 'url'=>array('/user/ads/create')),
                    array('label'=>'更换首页顶部图片', 'url'=>array('/user/ads/image')),
                )),
                array('label'=>'友情链接管理', 'items'=>array(
                    array('label'=>'友情链接列表', 'url'=>array('/user/links/list')),
                    array('label'=>'新增友情链接', 'url'=>array('/user/links/create')),
                )),
                array('label'=>'招聘管理', 'items'=>array(
                    array('label'=>'招聘列表', 'url'=>array('/user/job/list')),
                    array('label'=>'新增招聘', 'url'=>array('/user/job/create')),
                )),
                array('label'=>'内部页面管理', 'items'=>array(
                    array('label'=>'内部页面列表', 'url'=>array('/user/article/index')),
                    array('label'=>'发布新页面', 'url'=>array('/user/article/post')),
                )),
            ))
    ); ?>
    </div><!-- mb_mainmenu -->

    <?php $this->widget('zii.widgets.CBreadcrumbs', array(
        'links'=>$this->breadcrumbs,
        'separator'=>'&nbsp;|&nbsp;',
        'homeLink'=>false,
    )); ?><!-- breadcrumbs -->

    <div id="more_topic_info">
        <a id="more_topic_info_link"><span>More information about this topic</span></a>
    </div>

    <div id="top_right_box">
        <span>
			&nbsp;<?php echo CHtml::link('查看前台', $this->createUrl('/')); ?>
		</span>
        &nbsp;|&nbsp;
		<span>
			<?php echo CHtml::link('安全登出', $this->createUrl('/user/logout')); ?>
		</span>
    </div> <!-- hide_source_code, top_right_box -->

    <div id="content">
        <?php echo $content; ?>
        <?php if (isset(Yii::app()->sc)) { Yii::app()->sc->renderSourceBox(); } ?>

        <div id="sidebar">
            <?php
//            $this->beginWidget('zii.widgets.CPortlet', array(
//                'title'=>'',
//            ));
//            $this->widget('zii.widgets.CMenu', array(
//                'items'=>$this->menu,
//                'htmlOptions'=>array('class'=>'operations'),
//            ));
//            $this->endWidget();
            ?>
        </div><!-- sidebar -->
    </div><!-- content -->


    <div class="clear"></div>

    <div id="footer">
           <a href="">&copy; <?php echo date('Y'); ?>&nbsp;四川省计算机学会</a> <br/>
    </div><!-- footer -->

</div><!-- page -->


</body>
</html>
